﻿<%@ Page Title="" Language="C#" MasterPageFile="~/webs/Main.Master" AutoEventWireup="true" CodeBehind="PropagateRecord.aspx.cs" Inherits="OnlineManagement.Web.webs.PropagateRecord" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
 <style type="text/css">
        #add span{ margin:0 10px}
    </style>

    <link href="../resources/css/jquery.ui.all.css" rel="stylesheet" type="text/css" />
    <script src="../resources/scripts/jquery-1.10.2.js" type="text/javascript"></script>
    <script src="../resources/scripts/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../resources/scripts/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="../resources/scripts/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../resources/scripts/jquery.ui.datepicker-zh-TW.js" type="text/javascript"></script>

     <script type="text/javascript" language="javascript">
         $(document).ready(function () {
             $("#<%=txtPropagateDate.ClientID %>").datepicker($.datepicker.regional["zh-TW"]).datepicker("option", "dateFormat", "yy-mm-dd");
        

         });

        
     </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentNavigation" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
  
<div class="content-box-header">
    <h3>
        母猪繁殖登记</h3>
    <div class="clear">
    </div>
</div>
<div class="content-box-content">
    <div class="notification attention png_bg">
        <a href="#" class="close">
            <img src="../resources/images/icons/cross_grey_small.png" title="Close this notification"
                alt="close" /></a>
        <div>
            只有分娩期的母猪才能进行繁殖生产
        </div>
    </div>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
   
    <div id="add">
     <fieldset>
            <p>
                <span>母猪耳号:
                    <asp:DropDownList runat="server" ID="ddlSowId" Width="255" AutoPostBack="true">
                    </asp:DropDownList>
                </span>
            </p>
           
                <asp:Panel runat="server" ID="panSowInfo">
                <p>
                 <span>
                    猪舍号:&nbsp;&nbsp;&nbsp;
                    <asp:TextBox runat="server" Enabled="false" ID="txtPigPenName" CssClass="text-input small-input"></asp:TextBox>
                 </span> 

                 <span>
                    饲养员:
                    <asp:TextBox runat="server" ID="txtFeederName" Enabled="false" CssClass="text-input small-input"></asp:TextBox>
                 </span>
                 </p>
                </asp:Panel>
              <p>
               <span>
                仔猪品种:
                 <asp:DropDownList runat="server" ID="ddlPigType" Width="255"></asp:DropDownList>
               </span>

                 <span>
                    产子日期:
                    <asp:TextBox ID="txtPropagateDate" runat="server" CssClass="text-input small-input"></asp:TextBox>
                <lable style="color: Red">*</lable>
               </span>
              
            </p>
            <p>
                <span>
                    活产仔数:
                   <asp:TextBox runat="server" CssClass="text-input small-input" ID="txtLiveCount"  onkeyup="JavaScript:this.value=this.value.replace(/\D/gi,'')"></asp:TextBox>
                </span>
                <span>
                    弱仔数量:
                 <asp:TextBox runat="server" ID="txtWeakCount" CssClass="text-input small-input" onkeyup="JavaScript:this.value=this.value.replace(/\D/gi,'')" ></asp:TextBox>
                </span>
            </p>
           <%-- <p>
                <span>
                    公仔数量：
                <input id="txtMaleCount" class="text-input small-input" value="0" onkeyup="JavaScript:this.value=this.value.replace(/\D/gi,'')" />
                <small>请输入数字,不填即为0</small>
                </span>
                <span>
                    母仔数量：
                <input id="txtFemaleCount" class="text-input small-input" value="0" onkeyup="JavaScript:this.value=this.value.replace(/\D/gi,'')" />
                <small>请输入数字,不填即为0</small>
                </span>
            </p>--%>
            
            <p>
                <span>
                    畸形数量:
                       <asp:TextBox runat="server" CssClass="text-input small-input" ID="txtMalformationCount" onkeyup="JavaScript:this.value=this.value.replace(/\D/gi,'')"></asp:TextBox>
                </span>

                <span>
                    损失数量:
                       <asp:TextBox runat="server" CssClass="text-input small-input" ID="txtDeathCount" onkeyup="JavaScript:this.value=this.value.replace(/\D/gi,'')"></asp:TextBox>
                </span>
            </p>
           
            <p>
                <span>
                    备注说明:
                  <asp:TextBox ID="txtComment" runat="server" TextMode="SingleLine" Width="400" MaxLength="50"
                                CssClass="text-input"></asp:TextBox>
                </span>
            </p>
            <p>
               <asp:Button runat="server" ID="btnSave" CssClass="confirm-button" Text="保存" />
               <asp:Button runat="server" ID="btnCancel" CssClass="confirm-button" Text="重置"/>
            </p>
            <p></p>
            <p></p>
            <p>
                <asp:Panel runat="server" ID="panMsg"></asp:Panel>
            </p>
        </fieldset>
        </div>

  </ContentTemplate>
  </asp:UpdatePanel>
     </div>  
    <div class="clear">
</div>

</asp:Content>
